#!/usr/bin/env python

#
#    Copyright (c) 2009 Corey Goldberg (corey@goldb.org)
#    License: GNU GPLv3
#
#    This file is part of PerfMetrics.
#    
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.  See the GNU General Public License 
#    for more details.
#

# start PerfMetrics and kill it after a given amount of time


import subprocess
import time


secs = 55

cmd_args = ['pythonw', 'perfmetrics.py']
p = subprocess.Popen(cmd_args)
time.sleep(secs)
retcode = p.poll()
if retcode is None:
    p.kill()
